package o;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import java.io.FileDescriptor;
import java.io.PrintWriter;

public abstract class jv<E> extends jx {
    final kd ˊ;
    @NonNull
    private final Handler ˋ;
    private final int ˎ;
    @Nullable
    private final Activity ˏ;
    @NonNull
    private final Context ॱ;

    @Nullable
    public abstract E ʻ();

    protected jv(@NonNull FragmentActivity fragmentActivity) {
        this(fragmentActivity, fragmentActivity, new Handler(), 0);
    }

    jv(@Nullable Activity activity, @NonNull Context context, @NonNull Handler handler, int i) {
        this.ˊ = new kd();
        this.ˏ = activity;
        this.ॱ = (Context) hf.ˎ(context, "context == null");
        this.ˋ = (Handler) hf.ˎ(handler, "handler == null");
        this.ˎ = i;
    }

    public void ˋ(@NonNull String str, @Nullable FileDescriptor fileDescriptor, @NonNull PrintWriter printWriter, @Nullable String[] strArr) {
    }

    public boolean ˋ(@NonNull Fragment fragment) {
        return true;
    }

    @NonNull
    public LayoutInflater ˎ() {
        return LayoutInflater.from(this.ॱ);
    }

    public void ॱॱ() {
    }

    public void ˋ(@NonNull Fragment fragment, @SuppressLint({"UnknownNullness"}) Intent intent, int i, @Nullable Bundle bundle) {
        if (i != -1) {
            throw new IllegalStateException("Starting activity with a requestCode requires a FragmentActivity host");
        }
        this.ॱ.startActivity(intent);
    }

    public boolean ᐝ() {
        return true;
    }

    public int ʼ() {
        return this.ˎ;
    }

    @Nullable
    public View ˊ(int i) {
        return null;
    }

    public boolean d_() {
        return true;
    }

    @Nullable
    public Activity ʽ() {
        return this.ˏ;
    }

    @NonNull
    public Context ˋॱ() {
        return this.ॱ;
    }

    @NonNull
    public Handler ˏॱ() {
        return this.ˋ;
    }

    protected void ॱ(@NonNull Fragment fragment) {
    }
}
